package com.fpx.open.platform.domain.prealert;

import com.fpx.open.platform.domain.ae.ContactPerson;


/**
 * created:JavaBean Generator 2013-11-06
 */
public class BatchArrivalPrealertTR extends TableRecord {

    private static final long serialVersionUID = 1L;

    private String bap_id; 

    private String bap_shipperremark; 

    private String bap_remark; 

    private String bap_referenceno; 

    private String bap_packages; 

    private String bap_receiver; 

    private String bap_pieces; 

    private String um_code; 

    private String cp_id_modify; 

    private String bap_createdate; 

    private String bap_modifydate; 

    private String pit_code; 

    private String bap_labelcode; 

    private String bps_code; 

    private String bap_expressid; 

    private String bap_estimatedatepickup; 

    private String bap_actualarrivaldate; 

    private String bap_estimatedatearrival; 

    private String cp_id_creat; 

    private String cm_id_platform; 

    private String bap_weight; 

    private String bap_sender; 

    private String cm_id_shipper; 
    
    private Integer bap_doorPickup;
    
    private String service_item_id;
    
    /** 品类，  00：普货 01： 化妆品 02： 带电 03：纯电 如果有多项，用逗号隔开 Add by shiw 2015-09-16 */
    private String category_feature;
    
    /** 业务代码 */
    private String bizCode;
    
    /**
	 * @return the category_feature
	 */
	public String getCategory_feature() {
		return category_feature;
	}

	/**
	 * @param category_feature the category_feature to set
	 */
	public void setCategory_feature(String category_feature) {
		this.category_feature = category_feature;
	}

	private ContactPerson sender;
    
    private ContactPerson receiver;
    
    private ContactPerson pickuperContact;
    
    public BatchArrivalPrealertTR() {
        m_hmDataTypes.put("bap_id","NUMBER");
        m_hmDataTypes.put("bap_shipperremark","VARCHAR2");
        m_hmDataTypes.put("bap_remark","VARCHAR2");
        m_hmDataTypes.put("bap_referenceno","VARCHAR2");
        m_hmDataTypes.put("bap_packages","NUMBER");
        m_hmDataTypes.put("bap_receiver","VARCHAR2");
        m_hmDataTypes.put("bap_pieces","NUMBER");
        m_hmDataTypes.put("um_code","CHAR");
        m_hmDataTypes.put("cp_id_modify","NUMBER");
        m_hmDataTypes.put("bap_createdate","DATE");
        m_hmDataTypes.put("bap_modifydate","DATE");
        m_hmDataTypes.put("pit_code","CHAR");
        m_hmDataTypes.put("bap_labelcode","VARCHAR2");
        m_hmDataTypes.put("bps_code","CHAR");
        m_hmDataTypes.put("bap_expressid","VARCHAR2");
        m_hmDataTypes.put("bap_estimatedatepickup","DATE");
        m_hmDataTypes.put("bap_actualarrivaldate","DATE");
        m_hmDataTypes.put("bap_estimatedatearrival","DATE");
        m_hmDataTypes.put("cp_id_creat","NUMBER");
        m_hmDataTypes.put("cm_id_platform","NUMBER");
        m_hmDataTypes.put("bap_weight","NUMBER");
        m_hmDataTypes.put("bap_sender","VARCHAR2");
        m_hmDataTypes.put("cm_id_shipper","NUMBER");
        m_hmDataTypes.put("bap_doorPickup","CHAR");
        m_hmDataTypes.put("biz_code","VARCHAR2");
        this.m_strTableName = "CSD_BatchArrivalPrealert";
        this.m_astrPrimaryKey = new String[]{"bap_id"};
    }

    public void setBap_id(String strBap_id) {
        this.bap_id = strBap_id; 
    }

    public String getBap_id() {
        return this.bap_id; 
    }

    public void setBap_shipperremark(String strBap_shipperremark) {
        this.bap_shipperremark = strBap_shipperremark; 
    }
    
    public String getBap_shipperremark() {
        return this.bap_shipperremark; 
    }

    public void setBap_remark(String strBap_remark) {
        this.bap_remark = strBap_remark; 
    }

    public String getBap_remark() {
        return this.bap_remark; 
    }
    public void setBap_referenceno(String strBap_referenceno) {
        this.bap_referenceno = strBap_referenceno; 
    }

    public String getBap_referenceno() {
        return this.bap_referenceno; 
    }
    
    public void setBap_packages(String strBap_packages) {
        this.bap_packages = strBap_packages; 
    }

    public String getBap_packages() {
        return this.bap_packages; 
    }

    public void setBap_receiver(String strBap_receiver) {
        this.bap_receiver = strBap_receiver; 
    }

    public String getBap_receiver() {
        return this.bap_receiver; 
    }

    public void setBap_pieces(String strBap_pieces) {
        this.bap_pieces = strBap_pieces; 
    }

    public String getBap_pieces() {
        return this.bap_pieces; 
    }

    public void setUm_code(String strUm_code) {
        this.um_code = strUm_code; 
    }

    public String getUm_code() {
        return this.um_code; 
    }

    public void setCp_id_modify(String strCp_id_modify) {
        this.cp_id_modify = strCp_id_modify; 
    }
    public String getCp_id_modify() {
        return this.cp_id_modify; 
    }

    public void setBap_createdate(String strBap_createdate) {
        this.bap_createdate = strBap_createdate; 
    }

    public String getBap_createdate() {
        return this.bap_createdate; 
    }

    public void setBap_modifydate(String strBap_modifydate) {
        this.bap_modifydate = strBap_modifydate; 
    }
    public String getBap_modifydate() {
        return this.bap_modifydate; 
    }

    public void setPit_code(String strPit_code) {
        this.pit_code = strPit_code; 
    }
    public String getPit_code() {
        return this.pit_code; 
    }

    
    public void setBap_labelcode(String strBap_labelcode) {
        this.bap_labelcode = strBap_labelcode; 
    }

   
    public String getBap_labelcode() {
        return this.bap_labelcode; 
    }

    
    public void setBps_code(String strBps_code) {
        this.bps_code = strBps_code; 
    }

    
    public String getBps_code() {
        return this.bps_code; 
    }

    
    public void setBap_expressid(String strBap_expressid) {
        this.bap_expressid = strBap_expressid; 
    }

   
    public String getBap_expressid() {
        return this.bap_expressid; 
    }

   
    public void setBap_estimatedatepickup(String strBap_estimatedatepickup) {
        this.bap_estimatedatepickup = strBap_estimatedatepickup; 
    }

 
    public String getBap_estimatedatepickup() {
        return this.bap_estimatedatepickup; 
    }

   
    public void setBap_actualarrivaldate(String strBap_actualarrivaldate) {
        this.bap_actualarrivaldate = strBap_actualarrivaldate; 
    }

   
    public String getBap_actualarrivaldate() {
        return this.bap_actualarrivaldate; 
    }

  
    public void setBap_estimatedatearrival(String strBap_estimatedatearrival) {
        this.bap_estimatedatearrival = strBap_estimatedatearrival; 
    }

    public String getBap_estimatedatearrival() {
        return this.bap_estimatedatearrival; 
    }
    public void setCp_id_creat(String strCp_id_creat) {
        this.cp_id_creat = strCp_id_creat; 
    }

    public String getCp_id_creat() {
        return this.cp_id_creat; 
    }
    public void setCm_id_platform(String strCm_id_platform) {
        this.cm_id_platform = strCm_id_platform; 
    }

    public String getCm_id_platform() {
        return this.cm_id_platform; 
    }

    public void setBap_weight(String strBap_weight) {
        this.bap_weight = strBap_weight; 
    }

    public String getBap_weight() {
        return this.bap_weight; 
    }

    public void setBap_sender(String strBap_sender) {
        this.bap_sender = strBap_sender; 
    }

    public String getBap_sender() {
        return this.bap_sender; 
    }

    public void setCm_id_shipper(String strCm_id_shipper) {
        this.cm_id_shipper = strCm_id_shipper; 
    }

    public String getCm_id_shipper() {
        return this.cm_id_shipper; 
    }

    public Integer getBap_doorPickup() {
        return bap_doorPickup;
    }

    public void setBap_doorPickup(Integer bap_doorPickup) {
        this.bap_doorPickup = bap_doorPickup;
    }

    public ContactPerson getSender() {
        return sender;
    }

    public void setSender(ContactPerson sender) {
        this.sender = sender;
    }

    public ContactPerson getReceiver() {
        return receiver;
    }

    public void setReceiver(ContactPerson receiver) {
        this.receiver = receiver;
    }

	public String getService_item_id() {
		return service_item_id;
	}

	public void setService_item_id(String service_item_id) {
		this.service_item_id = service_item_id;
	}

	/**
	 * @return the bizCode
	 */
	public String getBizCode() {
		return bizCode;
	}

	/**
	 * @param bizCode the bizCode to set
	 */
	public void setBizCode(String bizCode) {
		this.bizCode = bizCode;
	}

	/**
	 * @return the pickuperContact
	 */
	public ContactPerson getPickuperContact() {
		return pickuperContact;
	}

	/**
	 * @param pickuperContact the pickuperContact to set
	 */
	public void setPickuperContact(ContactPerson pickuperContact) {
		this.pickuperContact = pickuperContact;
	}
	
	public boolean isPickup(){
		if(this.bap_doorPickup != null && this.bap_doorPickup == 1){
			return true;
		}
		return false;
	}
}
